Termination w.r.t. Q of the following Term Rewriting System could be proven:

Q restricted rewrite system:
The TRS R consists of the following rules:

plus(0, x) → x
plus(s(x), y) → s(plus(x, y))
times(0, y) → 0
times(s(x), y) → plus(y, times(x, y))
p(s(x)) → x
p(0) → 0
minus(x, 0) → x
minus(0, x) → 0
minus(x, s(y)) → p(minus(x, y))
isZero(0) → true
isZero(s(x)) → false
facIter(x, y) → if(isZero(x), minus(x, s(0)), y, times(y, x))
if(true, x, y, z) → y
if(false, x, y, z) → facIter(x, z)
factorial(x) → facIter(x, s(0))

Q is empty.


QTRS
  ↳ DependencyPairsProof

Q restricted rewrite system:
The TRS R consists of the following rules:

plus(0, x) → x
plus(s(x), y) → s(plus(x, y))
times(0, y) → 0
times(s(x), y) → plus(y, times(x, y))
p(s(x)) → x
p(0) → 0
minus(x, 0) → x
minus(0, x) → 0
minus(x, s(y)) → p(minus(x, y))
isZero(0) → true
isZero(s(x)) → false
facIter(x, y) → if(isZero(x), minus(x, s(0)), y, times(y, x))
if(true, x, y, z) → y
if(false, x, y, z) → facIter(x, z)
factorial(x) → facIter(x, s(0))

Q is empty.

Using Dependency Pairs [1,15] we result in the following initial DP problem:
Q DP problem:
The TRS P consists of the following rules:

TIMES(s(x), y) → PLUS(y, times(x, y))
FACITER(x, y) → IF(isZero(x), minus(x, s(0)), y, times(y, x))
FACITER(x, y) → TIMES(y, x)
MINUS(x, s(y)) → P(minus(x, y))
TIMES(s(x), y) → TIMES(x, y)
IF(false, x, y, z) → FACITER(x, z)
FACITER(x, y) → MINUS(x, s(0))
FACITER(x, y) → ISZERO(x)
MINUS(x, s(y)) → MINUS(x, y)
FACTORIAL(x) → FACITER(x, s(0))
PLUS(s(x), y) → PLUS(x, y)

The TRS R consists of the following rules:

plus(0, x) → x
plus(s(x), y) → s(plus(x, y))
times(0, y) → 0
times(s(x), y) → plus(y, times(x, y))
p(s(x)) → x
p(0) → 0
minus(x, 0) → x
minus(0, x) → 0
minus(x, s(y)) → p(minus(x, y))
isZero(0) → true
isZero(s(x)) → false
facIter(x, y) → if(isZero(x), minus(x, s(0)), y, times(y, x))
if(true, x, y, z) → y
if(false, x, y, z) → facIter(x, z)
factorial(x) → facIter(x, s(0))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.

↳ QTRS
  ↳ DependencyPairsProof
QDP
      ↳ DependencyGraphProof

Q DP problem:
The TRS P consists of the following rules:

TIMES(s(x), y) → PLUS(y, times(x, y))
FACITER(x, y) → IF(isZero(x), minus(x, s(0)), y, times(y, x))
FACITER(x, y) → TIMES(y, x)
MINUS(x, s(y)) → P(minus(x, y))
TIMES(s(x), y) → TIMES(x, y)
IF(false, x, y, z) → FACITER(x, z)
FACITER(x, y) → MINUS(x, s(0))
FACITER(x, y) → ISZERO(x)
MINUS(x, s(y)) → MINUS(x, y)
FACTORIAL(x) → FACITER(x, s(0))
PLUS(s(x), y) → PLUS(x, y)

The TRS R consists of the following rules:

plus(0, x) → x
plus(s(x), y) → s(plus(x, y))
times(0, y) → 0
times(s(x), y) → plus(y, times(x, y))
p(s(x)) → x
p(0) → 0
minus(x, 0) → x
minus(0, x) → 0
minus(x, s(y)) → p(minus(x, y))
isZero(0) → true
isZero(s(x)) → false
facIter(x, y) → if(isZero(x), minus(x, s(0)), y, times(y, x))
if(true, x, y, z) → y
if(false, x, y, z) → facIter(x, z)
factorial(x) → facIter(x, s(0))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 4 SCCs with 6 less nodes.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
QDP
            ↳ MNOCProof
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

MINUS(x, s(y)) → MINUS(x, y)

The TRS R consists of the following rules:

plus(0, x) → x
plus(s(x), y) → s(plus(x, y))
times(0, y) → 0
times(s(x), y) → plus(y, times(x, y))
p(s(x)) → x
p(0) → 0
minus(x, 0) → x
minus(0, x) → 0
minus(x, s(y)) → p(minus(x, y))
isZero(0) → true
isZero(s(x)) → false
facIter(x, y) → if(isZero(x), minus(x, s(0)), y, times(y, x))
if(true, x, y, z) → y
if(false, x, y, z) → facIter(x, z)
factorial(x) → facIter(x, s(0))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the modular non-overlap check [15] to enlarge Q to all left-hand sides of R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
            ↳ MNOCProof
QDP
                ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

MINUS(x, s(y)) → MINUS(x, y)

The TRS R consists of the following rules:

plus(0, x) → x
plus(s(x), y) → s(plus(x, y))
times(0, y) → 0
times(s(x), y) → plus(y, times(x, y))
p(s(x)) → x
p(0) → 0
minus(x, 0) → x
minus(0, x) → 0
minus(x, s(y)) → p(minus(x, y))
isZero(0) → true
isZero(s(x)) → false
facIter(x, y) → if(isZero(x), minus(x, s(0)), y, times(y, x))
if(true, x, y, z) → y
if(false, x, y, z) → facIter(x, z)
factorial(x) → facIter(x, s(0))

The set Q consists of the following terms:

plus(0, x0)
plus(s(x0), x1)
times(0, x0)
times(s(x0), x1)
p(s(x0))
p(0)
minus(x0, 0)
minus(0, x0)
minus(x0, s(x1))
isZero(0)
isZero(s(x0))
facIter(x0, x1)
if(true, x0, x1, x2)
if(false, x0, x1, x2)
factorial(x0)

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
            ↳ MNOCProof
              ↳ QDP
                ↳ UsableRulesProof
QDP
                    ↳ QReductionProof
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

MINUS(x, s(y)) → MINUS(x, y)

R is empty.
The set Q consists of the following terms:

plus(0, x0)
plus(s(x0), x1)
times(0, x0)
times(s(x0), x1)
p(s(x0))
p(0)
minus(x0, 0)
minus(0, x0)
minus(x0, s(x1))
isZero(0)
isZero(s(x0))
facIter(x0, x1)
if(true, x0, x1, x2)
if(false, x0, x1, x2)
factorial(x0)

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

plus(0, x0)
plus(s(x0), x1)
times(0, x0)
times(s(x0), x1)
p(s(x0))
p(0)
minus(x0, 0)
minus(0, x0)
minus(x0, s(x1))
isZero(0)
isZero(s(x0))
facIter(x0, x1)
if(true, x0, x1, x2)
if(false, x0, x1, x2)
factorial(x0)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
            ↳ MNOCProof
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
QDP
                        ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

MINUS(x, s(y)) → MINUS(x, y)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
QDP
            ↳ MNOCProof
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

PLUS(s(x), y) → PLUS(x, y)

The TRS R consists of the following rules:

plus(0, x) → x
plus(s(x), y) → s(plus(x, y))
times(0, y) → 0
times(s(x), y) → plus(y, times(x, y))
p(s(x)) → x
p(0) → 0
minus(x, 0) → x
minus(0, x) → 0
minus(x, s(y)) → p(minus(x, y))
isZero(0) → true
isZero(s(x)) → false
facIter(x, y) → if(isZero(x), minus(x, s(0)), y, times(y, x))
if(true, x, y, z) → y
if(false, x, y, z) → facIter(x, z)
factorial(x) → facIter(x, s(0))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the modular non-overlap check [15] to enlarge Q to all left-hand sides of R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
            ↳ MNOCProof
QDP
                ↳ UsableRulesProof
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

PLUS(s(x), y) → PLUS(x, y)

The TRS R consists of the following rules:

plus(0, x) → x
plus(s(x), y) → s(plus(x, y))
times(0, y) → 0
times(s(x), y) → plus(y, times(x, y))
p(s(x)) → x
p(0) → 0
minus(x, 0) → x
minus(0, x) → 0
minus(x, s(y)) → p(minus(x, y))
isZero(0) → true
isZero(s(x)) → false
facIter(x, y) → if(isZero(x), minus(x, s(0)), y, times(y, x))
if(true, x, y, z) → y
if(false, x, y, z) → facIter(x, z)
factorial(x) → facIter(x, s(0))

The set Q consists of the following terms:

plus(0, x0)
plus(s(x0), x1)
times(0, x0)
times(s(x0), x1)
p(s(x0))
p(0)
minus(x0, 0)
minus(0, x0)
minus(x0, s(x1))
isZero(0)
isZero(s(x0))
facIter(x0, x1)
if(true, x0, x1, x2)
if(false, x0, x1, x2)
factorial(x0)

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
            ↳ MNOCProof
              ↳ QDP
                ↳ UsableRulesProof
QDP
                    ↳ QReductionProof
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

PLUS(s(x), y) → PLUS(x, y)

R is empty.
The set Q consists of the following terms:

plus(0, x0)
plus(s(x0), x1)
times(0, x0)
times(s(x0), x1)
p(s(x0))
p(0)
minus(x0, 0)
minus(0, x0)
minus(x0, s(x1))
isZero(0)
isZero(s(x0))
facIter(x0, x1)
if(true, x0, x1, x2)
if(false, x0, x1, x2)
factorial(x0)

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

plus(0, x0)
plus(s(x0), x1)
times(0, x0)
times(s(x0), x1)
p(s(x0))
p(0)
minus(x0, 0)
minus(0, x0)
minus(x0, s(x1))
isZero(0)
isZero(s(x0))
facIter(x0, x1)
if(true, x0, x1, x2)
if(false, x0, x1, x2)
factorial(x0)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
            ↳ MNOCProof
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
QDP
                        ↳ QDPSizeChangeProof
          ↳ QDP
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

PLUS(s(x), y) → PLUS(x, y)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
QDP
            ↳ MNOCProof
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

TIMES(s(x), y) → TIMES(x, y)

The TRS R consists of the following rules:

plus(0, x) → x
plus(s(x), y) → s(plus(x, y))
times(0, y) → 0
times(s(x), y) → plus(y, times(x, y))
p(s(x)) → x
p(0) → 0
minus(x, 0) → x
minus(0, x) → 0
minus(x, s(y)) → p(minus(x, y))
isZero(0) → true
isZero(s(x)) → false
facIter(x, y) → if(isZero(x), minus(x, s(0)), y, times(y, x))
if(true, x, y, z) → y
if(false, x, y, z) → facIter(x, z)
factorial(x) → facIter(x, s(0))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the modular non-overlap check [15] to enlarge Q to all left-hand sides of R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ MNOCProof
QDP
                ↳ UsableRulesProof
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

TIMES(s(x), y) → TIMES(x, y)

The TRS R consists of the following rules:

plus(0, x) → x
plus(s(x), y) → s(plus(x, y))
times(0, y) → 0
times(s(x), y) → plus(y, times(x, y))
p(s(x)) → x
p(0) → 0
minus(x, 0) → x
minus(0, x) → 0
minus(x, s(y)) → p(minus(x, y))
isZero(0) → true
isZero(s(x)) → false
facIter(x, y) → if(isZero(x), minus(x, s(0)), y, times(y, x))
if(true, x, y, z) → y
if(false, x, y, z) → facIter(x, z)
factorial(x) → facIter(x, s(0))

The set Q consists of the following terms:

plus(0, x0)
plus(s(x0), x1)
times(0, x0)
times(s(x0), x1)
p(s(x0))
p(0)
minus(x0, 0)
minus(0, x0)
minus(x0, s(x1))
isZero(0)
isZero(s(x0))
facIter(x0, x1)
if(true, x0, x1, x2)
if(false, x0, x1, x2)
factorial(x0)

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ MNOCProof
              ↳ QDP
                ↳ UsableRulesProof
QDP
                    ↳ QReductionProof
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

TIMES(s(x), y) → TIMES(x, y)

R is empty.
The set Q consists of the following terms:

plus(0, x0)
plus(s(x0), x1)
times(0, x0)
times(s(x0), x1)
p(s(x0))
p(0)
minus(x0, 0)
minus(0, x0)
minus(x0, s(x1))
isZero(0)
isZero(s(x0))
facIter(x0, x1)
if(true, x0, x1, x2)
if(false, x0, x1, x2)
factorial(x0)

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

plus(0, x0)
plus(s(x0), x1)
times(0, x0)
times(s(x0), x1)
p(s(x0))
p(0)
minus(x0, 0)
minus(0, x0)
minus(x0, s(x1))
isZero(0)
isZero(s(x0))
facIter(x0, x1)
if(true, x0, x1, x2)
if(false, x0, x1, x2)
factorial(x0)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ MNOCProof
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
QDP
                        ↳ QDPSizeChangeProof
          ↳ QDP

Q DP problem:
The TRS P consists of the following rules:

TIMES(s(x), y) → TIMES(x, y)

R is empty.
Q is empty.
We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
QDP
            ↳ MNOCProof

Q DP problem:
The TRS P consists of the following rules:

FACITER(x, y) → IF(isZero(x), minus(x, s(0)), y, times(y, x))
IF(false, x, y, z) → FACITER(x, z)

The TRS R consists of the following rules:

plus(0, x) → x
plus(s(x), y) → s(plus(x, y))
times(0, y) → 0
times(s(x), y) → plus(y, times(x, y))
p(s(x)) → x
p(0) → 0
minus(x, 0) → x
minus(0, x) → 0
minus(x, s(y)) → p(minus(x, y))
isZero(0) → true
isZero(s(x)) → false
facIter(x, y) → if(isZero(x), minus(x, s(0)), y, times(y, x))
if(true, x, y, z) → y
if(false, x, y, z) → facIter(x, z)
factorial(x) → facIter(x, s(0))

Q is empty.
We have to consider all minimal (P,Q,R)-chains.
We use the modular non-overlap check [15] to enlarge Q to all left-hand sides of R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ MNOCProof
QDP
                ↳ UsableRulesProof

Q DP problem:
The TRS P consists of the following rules:

FACITER(x, y) → IF(isZero(x), minus(x, s(0)), y, times(y, x))
IF(false, x, y, z) → FACITER(x, z)

The TRS R consists of the following rules:

plus(0, x) → x
plus(s(x), y) → s(plus(x, y))
times(0, y) → 0
times(s(x), y) → plus(y, times(x, y))
p(s(x)) → x
p(0) → 0
minus(x, 0) → x
minus(0, x) → 0
minus(x, s(y)) → p(minus(x, y))
isZero(0) → true
isZero(s(x)) → false
facIter(x, y) → if(isZero(x), minus(x, s(0)), y, times(y, x))
if(true, x, y, z) → y
if(false, x, y, z) → facIter(x, z)
factorial(x) → facIter(x, s(0))

The set Q consists of the following terms:

plus(0, x0)
plus(s(x0), x1)
times(0, x0)
times(s(x0), x1)
p(s(x0))
p(0)
minus(x0, 0)
minus(0, x0)
minus(x0, s(x1))
isZero(0)
isZero(s(x0))
facIter(x0, x1)
if(true, x0, x1, x2)
if(false, x0, x1, x2)
factorial(x0)

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ MNOCProof
              ↳ QDP
                ↳ UsableRulesProof
QDP
                    ↳ QReductionProof

Q DP problem:
The TRS P consists of the following rules:

FACITER(x, y) → IF(isZero(x), minus(x, s(0)), y, times(y, x))
IF(false, x, y, z) → FACITER(x, z)

The TRS R consists of the following rules:

isZero(0) → true
isZero(s(x)) → false
minus(0, x) → 0
minus(x, s(y)) → p(minus(x, y))
times(0, y) → 0
times(s(x), y) → plus(y, times(x, y))
plus(0, x) → x
plus(s(x), y) → s(plus(x, y))
minus(x, 0) → x
p(s(x)) → x
p(0) → 0

The set Q consists of the following terms:

plus(0, x0)
plus(s(x0), x1)
times(0, x0)
times(s(x0), x1)
p(s(x0))
p(0)
minus(x0, 0)
minus(0, x0)
minus(x0, s(x1))
isZero(0)
isZero(s(x0))
facIter(x0, x1)
if(true, x0, x1, x2)
if(false, x0, x1, x2)
factorial(x0)

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

facIter(x0, x1)
if(true, x0, x1, x2)
if(false, x0, x1, x2)
factorial(x0)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ MNOCProof
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
QDP
                        ↳ Narrowing

Q DP problem:
The TRS P consists of the following rules:

FACITER(x, y) → IF(isZero(x), minus(x, s(0)), y, times(y, x))
IF(false, x, y, z) → FACITER(x, z)

The TRS R consists of the following rules:

isZero(0) → true
isZero(s(x)) → false
minus(0, x) → 0
minus(x, s(y)) → p(minus(x, y))
times(0, y) → 0
times(s(x), y) → plus(y, times(x, y))
plus(0, x) → x
plus(s(x), y) → s(plus(x, y))
minus(x, 0) → x
p(s(x)) → x
p(0) → 0

The set Q consists of the following terms:

plus(0, x0)
plus(s(x0), x1)
times(0, x0)
times(s(x0), x1)
p(s(x0))
p(0)
minus(x0, 0)
minus(0, x0)
minus(x0, s(x1))
isZero(0)
isZero(s(x0))

We have to consider all minimal (P,Q,R)-chains.
By narrowing [15] the rule FACITER(x, y) → IF(isZero(x), minus(x, s(0)), y, times(y, x)) at position [0] we obtained the following new rules:

FACITER(0, y1) → IF(true, minus(0, s(0)), y1, times(y1, 0))
FACITER(s(x0), y1) → IF(false, minus(s(x0), s(0)), y1, times(y1, s(x0)))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ MNOCProof
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
                      ↳ QDP
                        ↳ Narrowing
QDP
                            ↳ DependencyGraphProof

Q DP problem:
The TRS P consists of the following rules:

FACITER(0, y1) → IF(true, minus(0, s(0)), y1, times(y1, 0))
IF(false, x, y, z) → FACITER(x, z)
FACITER(s(x0), y1) → IF(false, minus(s(x0), s(0)), y1, times(y1, s(x0)))

The TRS R consists of the following rules:

isZero(0) → true
isZero(s(x)) → false
minus(0, x) → 0
minus(x, s(y)) → p(minus(x, y))
times(0, y) → 0
times(s(x), y) → plus(y, times(x, y))
plus(0, x) → x
plus(s(x), y) → s(plus(x, y))
minus(x, 0) → x
p(s(x)) → x
p(0) → 0

The set Q consists of the following terms:

plus(0, x0)
plus(s(x0), x1)
times(0, x0)
times(s(x0), x1)
p(s(x0))
p(0)
minus(x0, 0)
minus(0, x0)
minus(x0, s(x1))
isZero(0)
isZero(s(x0))

We have to consider all minimal (P,Q,R)-chains.
The approximation of the Dependency Graph [15,17,22] contains 1 SCC with 1 less node.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ MNOCProof
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
                      ↳ QDP
                        ↳ Narrowing
                          ↳ QDP
                            ↳ DependencyGraphProof
QDP
                                ↳ UsableRulesProof

Q DP problem:
The TRS P consists of the following rules:

IF(false, x, y, z) → FACITER(x, z)
FACITER(s(x0), y1) → IF(false, minus(s(x0), s(0)), y1, times(y1, s(x0)))

The TRS R consists of the following rules:

isZero(0) → true
isZero(s(x)) → false
minus(0, x) → 0
minus(x, s(y)) → p(minus(x, y))
times(0, y) → 0
times(s(x), y) → plus(y, times(x, y))
plus(0, x) → x
plus(s(x), y) → s(plus(x, y))
minus(x, 0) → x
p(s(x)) → x
p(0) → 0

The set Q consists of the following terms:

plus(0, x0)
plus(s(x0), x1)
times(0, x0)
times(s(x0), x1)
p(s(x0))
p(0)
minus(x0, 0)
minus(0, x0)
minus(x0, s(x1))
isZero(0)
isZero(s(x0))

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ MNOCProof
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
                      ↳ QDP
                        ↳ Narrowing
                          ↳ QDP
                            ↳ DependencyGraphProof
                              ↳ QDP
                                ↳ UsableRulesProof
QDP
                                    ↳ QReductionProof

Q DP problem:
The TRS P consists of the following rules:

IF(false, x, y, z) → FACITER(x, z)
FACITER(s(x0), y1) → IF(false, minus(s(x0), s(0)), y1, times(y1, s(x0)))

The TRS R consists of the following rules:

minus(x, s(y)) → p(minus(x, y))
times(0, y) → 0
times(s(x), y) → plus(y, times(x, y))
plus(0, x) → x
plus(s(x), y) → s(plus(x, y))
minus(0, x) → 0
minus(x, 0) → x
p(s(x)) → x
p(0) → 0

The set Q consists of the following terms:

plus(0, x0)
plus(s(x0), x1)
times(0, x0)
times(s(x0), x1)
p(s(x0))
p(0)
minus(x0, 0)
minus(0, x0)
minus(x0, s(x1))
isZero(0)
isZero(s(x0))

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

isZero(0)
isZero(s(x0))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ MNOCProof
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
                      ↳ QDP
                        ↳ Narrowing
                          ↳ QDP
                            ↳ DependencyGraphProof
                              ↳ QDP
                                ↳ UsableRulesProof
                                  ↳ QDP
                                    ↳ QReductionProof
QDP
                                        ↳ Narrowing

Q DP problem:
The TRS P consists of the following rules:

IF(false, x, y, z) → FACITER(x, z)
FACITER(s(x0), y1) → IF(false, minus(s(x0), s(0)), y1, times(y1, s(x0)))

The TRS R consists of the following rules:

minus(x, s(y)) → p(minus(x, y))
times(0, y) → 0
times(s(x), y) → plus(y, times(x, y))
plus(0, x) → x
plus(s(x), y) → s(plus(x, y))
minus(0, x) → 0
minus(x, 0) → x
p(s(x)) → x
p(0) → 0

The set Q consists of the following terms:

plus(0, x0)
plus(s(x0), x1)
times(0, x0)
times(s(x0), x1)
p(s(x0))
p(0)
minus(x0, 0)
minus(0, x0)
minus(x0, s(x1))

We have to consider all minimal (P,Q,R)-chains.
By narrowing [15] the rule FACITER(s(x0), y1) → IF(false, minus(s(x0), s(0)), y1, times(y1, s(x0))) at position [1] we obtained the following new rules:

FACITER(s(y0), y1) → IF(false, p(minus(s(y0), 0)), y1, times(y1, s(y0)))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ MNOCProof
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
                      ↳ QDP
                        ↳ Narrowing
                          ↳ QDP
                            ↳ DependencyGraphProof
                              ↳ QDP
                                ↳ UsableRulesProof
                                  ↳ QDP
                                    ↳ QReductionProof
                                      ↳ QDP
                                        ↳ Narrowing
QDP
                                            ↳ UsableRulesProof

Q DP problem:
The TRS P consists of the following rules:

FACITER(s(y0), y1) → IF(false, p(minus(s(y0), 0)), y1, times(y1, s(y0)))
IF(false, x, y, z) → FACITER(x, z)

The TRS R consists of the following rules:

minus(x, s(y)) → p(minus(x, y))
times(0, y) → 0
times(s(x), y) → plus(y, times(x, y))
plus(0, x) → x
plus(s(x), y) → s(plus(x, y))
minus(0, x) → 0
minus(x, 0) → x
p(s(x)) → x
p(0) → 0

The set Q consists of the following terms:

plus(0, x0)
plus(s(x0), x1)
times(0, x0)
times(s(x0), x1)
p(s(x0))
p(0)
minus(x0, 0)
minus(0, x0)
minus(x0, s(x1))

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ MNOCProof
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
                      ↳ QDP
                        ↳ Narrowing
                          ↳ QDP
                            ↳ DependencyGraphProof
                              ↳ QDP
                                ↳ UsableRulesProof
                                  ↳ QDP
                                    ↳ QReductionProof
                                      ↳ QDP
                                        ↳ Narrowing
                                          ↳ QDP
                                            ↳ UsableRulesProof
QDP
                                                ↳ Rewriting

Q DP problem:
The TRS P consists of the following rules:

FACITER(s(y0), y1) → IF(false, p(minus(s(y0), 0)), y1, times(y1, s(y0)))
IF(false, x, y, z) → FACITER(x, z)

The TRS R consists of the following rules:

minus(x, 0) → x
p(s(x)) → x
p(0) → 0
times(0, y) → 0
times(s(x), y) → plus(y, times(x, y))
plus(0, x) → x
plus(s(x), y) → s(plus(x, y))

The set Q consists of the following terms:

plus(0, x0)
plus(s(x0), x1)
times(0, x0)
times(s(x0), x1)
p(s(x0))
p(0)
minus(x0, 0)
minus(0, x0)
minus(x0, s(x1))

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule FACITER(s(y0), y1) → IF(false, p(minus(s(y0), 0)), y1, times(y1, s(y0))) at position [1,0] we obtained the following new rules:

FACITER(s(y0), y1) → IF(false, p(s(y0)), y1, times(y1, s(y0)))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ MNOCProof
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
                      ↳ QDP
                        ↳ Narrowing
                          ↳ QDP
                            ↳ DependencyGraphProof
                              ↳ QDP
                                ↳ UsableRulesProof
                                  ↳ QDP
                                    ↳ QReductionProof
                                      ↳ QDP
                                        ↳ Narrowing
                                          ↳ QDP
                                            ↳ UsableRulesProof
                                              ↳ QDP
                                                ↳ Rewriting
QDP
                                                    ↳ UsableRulesProof

Q DP problem:
The TRS P consists of the following rules:

IF(false, x, y, z) → FACITER(x, z)
FACITER(s(y0), y1) → IF(false, p(s(y0)), y1, times(y1, s(y0)))

The TRS R consists of the following rules:

minus(x, 0) → x
p(s(x)) → x
p(0) → 0
times(0, y) → 0
times(s(x), y) → plus(y, times(x, y))
plus(0, x) → x
plus(s(x), y) → s(plus(x, y))

The set Q consists of the following terms:

plus(0, x0)
plus(s(x0), x1)
times(0, x0)
times(s(x0), x1)
p(s(x0))
p(0)
minus(x0, 0)
minus(0, x0)
minus(x0, s(x1))

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ MNOCProof
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
                      ↳ QDP
                        ↳ Narrowing
                          ↳ QDP
                            ↳ DependencyGraphProof
                              ↳ QDP
                                ↳ UsableRulesProof
                                  ↳ QDP
                                    ↳ QReductionProof
                                      ↳ QDP
                                        ↳ Narrowing
                                          ↳ QDP
                                            ↳ UsableRulesProof
                                              ↳ QDP
                                                ↳ Rewriting
                                                  ↳ QDP
                                                    ↳ UsableRulesProof
QDP
                                                        ↳ QReductionProof

Q DP problem:
The TRS P consists of the following rules:

IF(false, x, y, z) → FACITER(x, z)
FACITER(s(y0), y1) → IF(false, p(s(y0)), y1, times(y1, s(y0)))

The TRS R consists of the following rules:

p(s(x)) → x
times(0, y) → 0
times(s(x), y) → plus(y, times(x, y))
plus(0, x) → x
plus(s(x), y) → s(plus(x, y))

The set Q consists of the following terms:

plus(0, x0)
plus(s(x0), x1)
times(0, x0)
times(s(x0), x1)
p(s(x0))
p(0)
minus(x0, 0)
minus(0, x0)
minus(x0, s(x1))

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

minus(x0, 0)
minus(0, x0)
minus(x0, s(x1))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ MNOCProof
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
                      ↳ QDP
                        ↳ Narrowing
                          ↳ QDP
                            ↳ DependencyGraphProof
                              ↳ QDP
                                ↳ UsableRulesProof
                                  ↳ QDP
                                    ↳ QReductionProof
                                      ↳ QDP
                                        ↳ Narrowing
                                          ↳ QDP
                                            ↳ UsableRulesProof
                                              ↳ QDP
                                                ↳ Rewriting
                                                  ↳ QDP
                                                    ↳ UsableRulesProof
                                                      ↳ QDP
                                                        ↳ QReductionProof
QDP
                                                            ↳ Rewriting

Q DP problem:
The TRS P consists of the following rules:

IF(false, x, y, z) → FACITER(x, z)
FACITER(s(y0), y1) → IF(false, p(s(y0)), y1, times(y1, s(y0)))

The TRS R consists of the following rules:

p(s(x)) → x
times(0, y) → 0
times(s(x), y) → plus(y, times(x, y))
plus(0, x) → x
plus(s(x), y) → s(plus(x, y))

The set Q consists of the following terms:

plus(0, x0)
plus(s(x0), x1)
times(0, x0)
times(s(x0), x1)
p(s(x0))
p(0)

We have to consider all minimal (P,Q,R)-chains.
By rewriting [15] the rule FACITER(s(y0), y1) → IF(false, p(s(y0)), y1, times(y1, s(y0))) at position [1] we obtained the following new rules:

FACITER(s(y0), y1) → IF(false, y0, y1, times(y1, s(y0)))



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ MNOCProof
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
                      ↳ QDP
                        ↳ Narrowing
                          ↳ QDP
                            ↳ DependencyGraphProof
                              ↳ QDP
                                ↳ UsableRulesProof
                                  ↳ QDP
                                    ↳ QReductionProof
                                      ↳ QDP
                                        ↳ Narrowing
                                          ↳ QDP
                                            ↳ UsableRulesProof
                                              ↳ QDP
                                                ↳ Rewriting
                                                  ↳ QDP
                                                    ↳ UsableRulesProof
                                                      ↳ QDP
                                                        ↳ QReductionProof
                                                          ↳ QDP
                                                            ↳ Rewriting
QDP
                                                                ↳ UsableRulesProof

Q DP problem:
The TRS P consists of the following rules:

IF(false, x, y, z) → FACITER(x, z)
FACITER(s(y0), y1) → IF(false, y0, y1, times(y1, s(y0)))

The TRS R consists of the following rules:

p(s(x)) → x
times(0, y) → 0
times(s(x), y) → plus(y, times(x, y))
plus(0, x) → x
plus(s(x), y) → s(plus(x, y))

The set Q consists of the following terms:

plus(0, x0)
plus(s(x0), x1)
times(0, x0)
times(s(x0), x1)
p(s(x0))
p(0)

We have to consider all minimal (P,Q,R)-chains.
As all Q-normal forms are R-normal forms we are in the innermost case. Hence, by the usable rules processor [15] we can delete all non-usable rules [17] from R.

↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ MNOCProof
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
                      ↳ QDP
                        ↳ Narrowing
                          ↳ QDP
                            ↳ DependencyGraphProof
                              ↳ QDP
                                ↳ UsableRulesProof
                                  ↳ QDP
                                    ↳ QReductionProof
                                      ↳ QDP
                                        ↳ Narrowing
                                          ↳ QDP
                                            ↳ UsableRulesProof
                                              ↳ QDP
                                                ↳ Rewriting
                                                  ↳ QDP
                                                    ↳ UsableRulesProof
                                                      ↳ QDP
                                                        ↳ QReductionProof
                                                          ↳ QDP
                                                            ↳ Rewriting
                                                              ↳ QDP
                                                                ↳ UsableRulesProof
QDP
                                                                    ↳ QReductionProof

Q DP problem:
The TRS P consists of the following rules:

IF(false, x, y, z) → FACITER(x, z)
FACITER(s(y0), y1) → IF(false, y0, y1, times(y1, s(y0)))

The TRS R consists of the following rules:

times(0, y) → 0
times(s(x), y) → plus(y, times(x, y))
plus(0, x) → x
plus(s(x), y) → s(plus(x, y))

The set Q consists of the following terms:

plus(0, x0)
plus(s(x0), x1)
times(0, x0)
times(s(x0), x1)
p(s(x0))
p(0)

We have to consider all minimal (P,Q,R)-chains.
We deleted the following terms from Q as each root-symbol of these terms does neither occur in P nor in R.

p(s(x0))
p(0)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ MNOCProof
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
                      ↳ QDP
                        ↳ Narrowing
                          ↳ QDP
                            ↳ DependencyGraphProof
                              ↳ QDP
                                ↳ UsableRulesProof
                                  ↳ QDP
                                    ↳ QReductionProof
                                      ↳ QDP
                                        ↳ Narrowing
                                          ↳ QDP
                                            ↳ UsableRulesProof
                                              ↳ QDP
                                                ↳ Rewriting
                                                  ↳ QDP
                                                    ↳ UsableRulesProof
                                                      ↳ QDP
                                                        ↳ QReductionProof
                                                          ↳ QDP
                                                            ↳ Rewriting
                                                              ↳ QDP
                                                                ↳ UsableRulesProof
                                                                  ↳ QDP
                                                                    ↳ QReductionProof
QDP
                                                                        ↳ ForwardInstantiation

Q DP problem:
The TRS P consists of the following rules:

IF(false, x, y, z) → FACITER(x, z)
FACITER(s(y0), y1) → IF(false, y0, y1, times(y1, s(y0)))

The TRS R consists of the following rules:

times(0, y) → 0
times(s(x), y) → plus(y, times(x, y))
plus(0, x) → x
plus(s(x), y) → s(plus(x, y))

The set Q consists of the following terms:

plus(0, x0)
plus(s(x0), x1)
times(0, x0)
times(s(x0), x1)

We have to consider all minimal (P,Q,R)-chains.
By forward instantiating [14] the rule IF(false, x, y, z) → FACITER(x, z) we obtained the following new rules:

IF(false, s(y_0), x1, x2) → FACITER(s(y_0), x2)



↳ QTRS
  ↳ DependencyPairsProof
    ↳ QDP
      ↳ DependencyGraphProof
        ↳ AND
          ↳ QDP
          ↳ QDP
          ↳ QDP
          ↳ QDP
            ↳ MNOCProof
              ↳ QDP
                ↳ UsableRulesProof
                  ↳ QDP
                    ↳ QReductionProof
                      ↳ QDP
                        ↳ Narrowing
                          ↳ QDP
                            ↳ DependencyGraphProof
                              ↳ QDP
                                ↳ UsableRulesProof
                                  ↳ QDP
                                    ↳ QReductionProof
                                      ↳ QDP
                                        ↳ Narrowing
                                          ↳ QDP
                                            ↳ UsableRulesProof
                                              ↳ QDP
                                                ↳ Rewriting
                                                  ↳ QDP
                                                    ↳ UsableRulesProof
                                                      ↳ QDP
                                                        ↳ QReductionProof
                                                          ↳ QDP
                                                            ↳ Rewriting
                                                              ↳ QDP
                                                                ↳ UsableRulesProof
                                                                  ↳ QDP
                                                                    ↳ QReductionProof
                                                                      ↳ QDP
                                                                        ↳ ForwardInstantiation
QDP
                                                                            ↳ QDPSizeChangeProof

Q DP problem:
The TRS P consists of the following rules:

IF(false, s(y_0), x1, x2) → FACITER(s(y_0), x2)
FACITER(s(y0), y1) → IF(false, y0, y1, times(y1, s(y0)))

The TRS R consists of the following rules:

times(0, y) → 0
times(s(x), y) → plus(y, times(x, y))
plus(0, x) → x
plus(s(x), y) → s(plus(x, y))

The set Q consists of the following terms:

plus(0, x0)
plus(s(x0), x1)
times(0, x0)
times(s(x0), x1)

We have to consider all minimal (P,Q,R)-chains.
By using the subterm criterion [20] together with the size-change analysis [32] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs: